package com.nf.view;

import com.nf.entity.HelloWork;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.applet.AppletContext;

public class text {
    public static void main(String[] args){
        ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
        HelloWork helloWork=(HelloWork)ctx.getBean("wang");
        helloWork.hello();
//        HelloWork work=new HelloWork();
//        work.hello();
    }
}
